let root = document.getElementById("root");
let chart = echarts.init(root);
let option = {
  title: {
    text: "start kit"
  },
  legend: {
    data: ["进货量", "销售量"]
  },
  toolTip: {},
  xAxis: {
    data: ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]
  },
  yAxis: {},
  series: [
    {
      name: "进货量",
      type: "bar",
      data: [5, 20, 36, 10, 10, 20]
    },
    {
      name: "销售量",
      type: "bar",
      data: [20, 10, 26, 50, 30, 20]
    }
  ]
};
chart.setOption(option);
